package com.wxm;

import com.wxm.proxy.OrderServiceProxy;
import com.wxm.service.Order;
import com.wxm.service.OrderService;
import com.wxm.service.OrderServiceImpl;

import java.util.Date;


public class ProxyTest {
    public static void main(String[] args) {
        OrderService orderService = (OrderService)new OrderServiceProxy().getInstance(new OrderServiceImpl());
        Order order = new Order();
        order.setInfo("订单");
        order.setCreateTime(new Date());
        orderService.insert(order);
    }
}
